<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Labyrinthe:  Fichier source de Plateau.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.5.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Liste&nbsp;des&nbsp;fichiers</span></a></li>
    </ul>
  </div>
<h1>Plateau.h</h1><a href="Plateau_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef _PLATEAU_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define _PLATEAU_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;time.h&gt;</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 <span class="preprocessor">#include "<a class="code" href="Case_8h.html">Case.h</a>"</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include "<a class="code" href="CaseI_8h.html">CaseI.h</a>"</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="CaseL_8h.html">CaseL.h</a>"</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="CaseT_8h.html">CaseT.h</a>"</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="CaseDepart_8h.html">CaseDepart.h</a>"</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="Rangee_8h.html">Rangee.h</a>"</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="Tresor_8h.html">Tresor.h</a>"</span>
<a name="l00025"></a>00025 
<a name="l00026"></a><a class="code" href="classPlateau.html">00026</a> <span class="keyword">class </span><a class="code" href="classPlateau.html" title="Le plateau de jeu, constitué de 7x7 cases et d&amp;#39;une case libre.">Plateau</a> {
<a name="l00027"></a>00027 
<a name="l00032"></a>00032   <span class="keyword">private</span>:
<a name="l00033"></a>00033         vector&lt;vector&lt;Case*&gt; &gt; _cases;
<a name="l00034"></a>00034         <a class="code" href="classCase.html" title="Interface d&amp;#39;une case.">Case</a> * _caseLibre;
<a name="l00035"></a>00035     <a class="code" href="classRangee.html" title="Une rangee du plateau definie par son indice, son type et son sens.">Rangee</a> _rangeeCaseLibre;
<a name="l00036"></a>00036 
<a name="l00042"></a>00042         <a class="code" href="classCase.html" title="Interface d&amp;#39;une case.">Case</a>* <a class="code" href="classPlateau.html#445140084210fe00619d0e6549d03be7" title="Renvoie une case aleatoire choisi parmi un lot.">caseAleatoire</a>(vector&lt;Case*&gt;* vec);
<a name="l00043"></a>00043 
<a name="l00050"></a>00050         <span class="keywordtype">void</span> <a class="code" href="classPlateau.html#0eb74cda6f236d650b9664ebd3be119b" title="Indique quels sont les cases accessibles depuis la position donnée.">casesAccessibles</a>(<span class="keywordtype">int</span> ligne, <span class="keywordtype">int</span> colonne,vector&lt;Case*&gt;* vec);
<a name="l00051"></a>00051 
<a name="l00052"></a>00052   <span class="keyword">public</span>:
<a name="l00053"></a>00053 
<a name="l00059"></a>00059         <span class="keywordtype">bool</span> <a class="code" href="classPlateau.html#58799cb4522b063732b0888f141e8193" title="Verifie si la case _case est dans le vecteur vec.">casePresente</a>(<a class="code" href="classCase.html" title="Interface d&amp;#39;une case.">Case</a> * _case, vector&lt;Case*&gt;* vec);
<a name="l00060"></a>00060 
<a name="l00065"></a>00065     <span class="keywordtype">void</span> <a class="code" href="classPlateau.html#e054440a1afc017d3559a3df8e79c632" title="Fais pivoter la case libre.">pivoterCaseLibre</a>(<span class="keywordtype">int</span> direction);
<a name="l00066"></a>00066 
<a name="l00071"></a>00071     <span class="keywordtype">void</span> <a class="code" href="classPlateau.html#db738b80099dd488fc36e8c0d740af13" title="Insere la case libre et modifie le plateau. (PS : Aucun deplacement de joueurs).">insereCaseLibre</a>();
<a name="l00072"></a>00072 
<a name="l00078"></a>00078         vector&lt;Case*&gt; <a class="code" href="classPlateau.html#0eb74cda6f236d650b9664ebd3be119b" title="Indique quels sont les cases accessibles depuis la position donnée.">casesAccessibles</a>(<span class="keyword">const</span> <a class="code" href="classCase.html" title="Interface d&amp;#39;une case.">Case</a>* depart);
<a name="l00079"></a>00079 
<a name="l00080"></a>00080 
<a name="l00085"></a>00085     <a class="code" href="classRangee.html" title="Une rangee du plateau definie par son indice, son type et son sens.">Rangee</a> <a class="code" href="classPlateau.html#673ccc5b42637b2e850841ae56bd49e4" title="Renvoie la rangee de la case libre.">getRangeeCaseLibre</a>();
<a name="l00086"></a>00086 
<a name="l00092"></a>00092     <span class="keywordtype">void</span> <a class="code" href="classPlateau.html#317e3793240c52f3d6d0140adf4e0d65" title="Change la rangee de la case libre. La rangée n&amp;#39;est modifiée que si son indice...">setRangeeCaseLibre</a>(<a class="code" href="classRangee.html" title="Une rangee du plateau definie par son indice, son type et son sens.">Rangee</a> rang);
<a name="l00093"></a>00093 
<a name="l00098"></a>00098         <a class="code" href="classCase.html" title="Interface d&amp;#39;une case.">Case</a>* <a class="code" href="classPlateau.html#72068b954480f8684607573ba2710149" title="Renvoie la case libre.">getCaseLibre</a>();
<a name="l00099"></a>00099 
<a name="l00106"></a>00106         <a class="code" href="classCase.html" title="Interface d&amp;#39;une case.">Case</a>* <a class="code" href="classPlateau.html#efa3e66173aae4b90909168a9b8d0fb1" title="Renvoie la case positionnée en (i,j).">getCase</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j);
<a name="l00107"></a>00107 
<a name="l00112"></a>00112         vector&lt;vector&lt;Case*&gt; &gt; <a class="code" href="classPlateau.html#130f998df8a2bb6948f8a9d052552f9d" title="Renvoie le tableau de cases.">getTable</a>();
<a name="l00113"></a>00113 
<a name="l00117"></a>00117         <a class="code" href="classPlateau.html#07026170529dd928238ee45de0a797d7" title="Constructeur par defaut.">Plateau</a>();
<a name="l00118"></a>00118 
<a name="l00123"></a>00123         <a class="code" href="classPlateau.html#07026170529dd928238ee45de0a797d7" title="Constructeur par defaut.">Plateau</a>(<a class="code" href="classTresor.html" title="Un tresor defini par son nom et sa position sur le labyrinthe.">Tresor</a> tres[]);
<a name="l00124"></a>00124 
<a name="l00128"></a>00128         <span class="keywordtype">void</span> <a class="code" href="classPlateau.html#1cb949e7fef9854a5e31180160a90192" title="Affiche le plateau. Obsolete. Tests uniquement.">affiche</a>();
<a name="l00129"></a>00129         
<a name="l00130"></a>00130 
<a name="l00131"></a>00131 };
<a name="l00132"></a>00132 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Généré le Fri Feb 19 10:49:27 2010 pour Labyrinthe par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.7.1 </small></address>
</body>
</html>
